import java.io.*;
import java.util.Calendar;
import java.util.Date;
import java.util.Scanner;

public class WriteInFile {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		Event event = new Event();
		String tmp = "";
		try {
			BufferedWriter out = new BufferedWriter(new OutputStreamWriter(
					new FileOutputStream("C:\\Events.txt", true)));

			System.out.println("������ ����:");
			System.out.print("�����:");
			tmp += sc.nextLine();
			System.out.print("̳����:");
			tmp = sc.nextLine() + "/" + tmp;
			System.out.print("г�:");
			tmp = tmp + "/" + sc.nextLine();
			event.setDate(new Date(tmp));
			System.out.println("������ ���� ��䳿:");
			event.setDescription(sc.nextLine());
			out.write(event.toString());
			out.newLine();
			out.close();
		} catch (Exception e) {
		}
	}
}
